<template>
	<view class="content">
		<view class="">
			<button class="com-btn" @click="wechatLogin">微信快捷登录1</button>
		</view>
	</view>
</template>

<script setup>
	import { wechatAuth } from '@/utils/common.js'
	import { useglobal } from '@/stores'
	
	const wechatLogin = ()=>{
		wechatAuth('pages/login')
	}
	onLoad(() => {
		const params = new URLSearchParams(window.location.search)
		uni.clearStorage();
		if(window.location.search.length){
			uni.setStorageSync('orgin', params.get('orgin'))
			uni.setStorageSync('liveNo', params.get('live_no'))
			uni.setStorageSync('companyCode', params.get('company_code'))
			uni.setStorageSync('mid', params.get('mid'))
			uni.setStorageSync('source', params.get('source'))
		}
	})
	
</script>

<style lang="scss" scoped>
	page{background: #f1f1f1;}
	.com-btn{margin-top: 30vh;margin-left: 50px;margin-right: 50px;}
</style>

